package com.integration.rest.service;

import java.io.FileNotFoundException;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.StreamingOutput;


public interface IRetrieveService {

	@GET
	@Produces(MediaType.APPLICATION_JSON)
	@Path("/{sharing}")
	public String getJSONList(@PathParam("sharing")String sharing);
	
		
	@GET
	@Produces(MediaType.APPLICATION_JSON)
	@Path("/{sharing}/{fileid}")
	public String getJSONItem(@PathParam("sharing")String sharing,@PathParam("fileid")String fileId);

	@GET
	@Produces(MediaType.APPLICATION_OCTET_STREAM)
	@Path("/{sharing}/{fileid}")
	public StreamingOutput getItem(@PathParam("sharing")String sharing,@PathParam("fileid")String fileId) throws FileNotFoundException;

	
}
